//
//  TMCutterLayer.h
//  cutter
//
//  Created by mac on 15/12/8.
//  Copyright © 2015年 e360. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TMCutterConstant.h"

//代理
@class TMCutterLayer;
@protocol TMCutterLayerDelegate <NSObject>
-(void)cutterLayerResize:(TMCutterLayer*)layer;
@end


//图层
@interface TMCutterLayer : UIView
@property(nonatomic,assign) id<TMCutterLayerDelegate> delegate;
@property(nonatomic,strong) NSDictionary *data;
@property(nonatomic,assign) BOOL enabled;
//
@property(nonatomic,assign) CGFloat x;
@property(nonatomic,assign) CGFloat y;
@property(nonatomic,assign) CGFloat z;
@property(nonatomic,assign) CGFloat scaleX;
@property(nonatomic,assign) CGFloat scaleY;
@property(nonatomic,assign) CGFloat scaleZ;
@property(nonatomic,assign) CGFloat rotationX;
@property(nonatomic,assign) CGFloat rotationY;
@property(nonatomic,assign) CGFloat rotationZ;
@property(nonatomic,assign) NSInteger color;
@property(nonatomic,strong) id identifier;
+(instancetype)layer:(NSDictionary*)data;
+(NSMutableDictionary*)property;
@end

//文本
@interface TMCutterLabel : TMCutterLayer
@property(nonatomic,copy) NSString *text;
@property(nonatomic,copy) NSString *font;
@property(nonatomic,assign) CGFloat size;
@end

//图像=basePath + image
@interface TMCutterImage : TMCutterLayer
@property(nonatomic,copy) NSString *image;
@end